import { TOKEN, CLEAR_TOKEN, TOGGLE_COLLAPSE, USERNAME } from "./mutation-types";

export default {
  [TOKEN]({ commit }, token) {
    commit(TOKEN, token);
  },
  [CLEAR_TOKEN]({ commit }) {
    commit(CLEAR_TOKEN);
  },
  [TOGGLE_COLLAPSE]({ commit }) {
    commit(TOGGLE_COLLAPSE);
  },
  [USERNAME]({ commit }, username) {
    commit(USERNAME, username);
  }
};
